:root {
  /* Faded CMYK palette */
  --cyan: #6aa9bd;
  --magenta: #c06ba6;
  --yellow: #d1b66d;
  --key: #0f1112;

  --bg: var(--key);
  --panel: #141619;
  --text: #e7e7e7;
  --muted: #a7adb3;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--text);
  background: var(--bg);
  display: grid;
  place-items: center;
}

.container {
  width: 100%;
  max-width: 980px;
  padding: 48px 20px 64px;
  display: grid;
  gap: 32px;
  justify-items: center;
}

.scanlines::before,
.scanlines::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.scanlines::before {
  background: linear-gradient(to bottom, rgba(255,255,255,0.03) 50%, transparent 50%);
  background-size: 100% 3px;
}
.scanlines::after {
  background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(106,169,189,0.04) 6px 12px);
}

.hero {
  text-align: center;
  display: grid;
  gap: 18px;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  /* background: repeating-linear-gradient(135deg, rgba(106,169,189,0.12) 0 6px, transparent 6px 12px);
  border: 1px solid var(--cyan); */
  display: grid;
  place-items: center;
}

.glitch {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: none;
  position: relative;
  text-shadow: 0 0 0 rgba(0,0,0,0);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: var(--text);
}
/* .glitch::before { transform: translate(2px, 0); color: rgba(106,169,189,0.55); } */
/* .glitch::after { transform: translate(-2px, 0); color: rgba(192,107,166,0.55); } */

.glitch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.christmas-tree {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  flex-shrink: 0;
}

.christmas-tree .light {
  animation: twinkle 1.5s ease-in-out infinite;
}

.christmas-tree .light-1 {
  animation-delay: 0s;
}

.christmas-tree .light-2 {
  animation-delay: 0.3s;
}

.christmas-tree .light-3 {
  animation-delay: 0.6s;
}

.christmas-tree .light-4 {
  animation-delay: 0.9s;
}

.christmas-tree .light-5 {
  animation-delay: 1.2s;
}

.christmas-tree .light-6 {
  animation-delay: 1.5s;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.3;
    filter: brightness(0.5);
  }
}

.tagline {
  color: var(--muted);
  font-size: 18px;
}

.cta { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 80ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  border: 1px solid currentColor;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: transparent;
  color: var(--cyan);
}
.btn-primary:hover { background: rgba(106,169,189,0.12); }
.btn-ghost {
  background: transparent;
  color: var(--magenta);
}
.btn-ghost:hover { background: rgba(192,107,166,0.12); }
.btn-yellow {
  background: transparent;
  color: var(--yellow);
}
.btn-yellow:hover { background: rgba(209,182,109,0.12); }
.btn.wide { width: 100%; }

.terminal {
  margin: 24px auto 8px;
  background: var(--panel);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: min(680px, 92vw);
  justify-self: center;
  position: relative;
  z-index: 1;
}
.terminal code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; color: #cfe9f3; }
.terminal .prompt { color: var(--yellow); margin-right: 8px; }
.terminal .copy {
  appearance: none;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
}
.terminal .copy:hover { background: rgba(106,169,189,0.12); }

/* Feature grid styles used by index.html */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.feature {
  background: var(--panel);
  border: 1px solid rgba(231,231,231,0.1);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}
.feature .icon { font-size: 22px; color: var(--yellow); margin-bottom: 8px; }
.feature h3 { margin: 4px 0 6px; }
.feature p { margin: 0; color: var(--muted); }

.docs {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  width: 100%;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid rgba(231,231,231,0.1);
  border-radius: 6px;
  padding: 12px;
}

.menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.menu a {
  display: block;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
}
.menu a:hover { background: rgba(106,169,189,0.12); color: var(--cyan); }
.menu a.active { background: rgba(106,169,189,0.12); color: var(--cyan); }

.content {
  background: var(--panel);
  border: 1px solid rgba(231,231,231,0.1);
  border-radius: 6px;
  padding: 18px;
  position: relative;
  z-index: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.65;
  font-size: 18px;
}

.content h1 { font-size: 32px; line-height: 1.25; margin-block-start: 30px; }
.content h2 { font-size: 24px; line-height: 1.30; margin-block-start: 24px; }
.content h3 { font-size: 20px; line-height: 1.35; margin-block-start: 18px; }

.content pre {
  background: #0d1012;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 12px;
  overflow: hidden;
  max-width: 100%;
  font-size: 14px;
}
.content pre code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: block;
}
.content code {
  color: #cfe9f3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.content :not(pre) > code {
  white-space: break-spaces;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.content p, .content li, .content a, .content h1, .content h2, .content h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 4px;
}

.doc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 128px;
}
.doc-nav-left a, .doc-nav-right a {
  text-decoration: none;
}

.pricing {
  width: 100%;
  display: grid;
  justify-items: center;
}
.card {
  width: min(420px, 92vw);
  background: var(--panel);
  border: 1px solid var(--magenta);
  border-radius: 6px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.price { font-size: 36px; font-weight: 800; margin: 8px 0 10px; }
.price .currency { color: var(--magenta); margin-right: 3px; }
.price .term { font-size: 14px; color: var(--muted); margin-left: 6px; }
.list { margin: 14px 0 18px; padding-left: 0; display: grid; gap: 8px; }
.list li { color: var(--muted); }

.footer { text-align: center; color: var(--muted); display: grid; gap: 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.dim { color: #8aa1b6; }

@media (max-width: 820px) {
  .docs { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; max-height: none; }
  .features { grid-template-columns: 1fr; }
}

/* Changelog scoped accent color overrides (yellow theme) */
.changelog .btn-primary {
  color: var(--yellow);
}
.changelog .btn-primary:hover { background: rgba(209,182,109,0.12); }
.changelog .menu a:hover,
.changelog .menu a.active {
  background: rgba(209,182,109,0.12);
  color: var(--yellow);
}
.changelog .content pre {
  border-color: var(--yellow);
}
.changelog .terminal { border-color: var(--yellow); }
.changelog .terminal .copy {
  color: var(--yellow);
  border-color: var(--yellow);
}
.changelog .terminal .copy:hover { background: rgba(209,182,109,0.12); }

